package com.baoxin.chenxixc4coach.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * 在培学员
 */
public class TrainStudent implements Parcelable {
    private String trId;
    private String trUserId;
    private String trName;
    private String trIdnumber;
    private String trPhone;
    private String trCtime;
    private String trImg;
    private int trState;//科目1,2,3,4

    public int getTrState() {
        return trState;
    }

    public String getTrId() {
        return trId;
    }

    public String getTrUserId() {
        return trUserId;
    }

    private boolean isSelected;//安排考试多选标示

    public String getTrName() {
        return trName;
    }

    public void setTrName(String trName) {
        this.trName = trName;
    }

    public String getTrIdnumber() {
        return trIdnumber;
    }

    public void setTrIdnumber(String trIdnumber) {
        this.trIdnumber = trIdnumber;
    }

    public boolean isSelected() {
        return isSelected;
    }

    public void setSelected(boolean selected) {
        isSelected = selected;
    }

    public String getTrPhone() {
        return trPhone;
    }

    public void setTrPhone(String trPhone) {
        this.trPhone = trPhone;
    }

    public String getTrCtime() {
        return trCtime;
    }

    public void setTrCtime(String trCtime) {
        this.trCtime = trCtime;
    }

    public String getTrImg() {
        return trImg;
    }

    public void setTrImg(String trImg) {
        this.trImg = trImg;
    }

    public TrainStudent() {
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.trId);
        dest.writeString(this.trUserId);
        dest.writeString(this.trName);
        dest.writeString(this.trIdnumber);
        dest.writeString(this.trPhone);
        dest.writeString(this.trCtime);
        dest.writeString(this.trImg);
        dest.writeInt(this.trState);
        dest.writeByte(this.isSelected ? (byte) 1 : (byte) 0);
    }

    protected TrainStudent(Parcel in) {
        this.trId = in.readString();
        this.trUserId = in.readString();
        this.trName = in.readString();
        this.trIdnumber = in.readString();
        this.trPhone = in.readString();
        this.trCtime = in.readString();
        this.trImg = in.readString();
        this.trState = in.readInt();
        this.isSelected = in.readByte() != 0;
    }

    public static final Creator<TrainStudent> CREATOR = new Creator<TrainStudent>() {
        @Override
        public TrainStudent createFromParcel(Parcel source) {
            return new TrainStudent(source);
        }

        @Override
        public TrainStudent[] newArray(int size) {
            return new TrainStudent[size];
        }
    };
}
